package com.reading_recognition_system.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class User {
    @JsonProperty("uId")
    private int uId;
    private String username;
    private String usercode;
    private String password;
    private String sex;
    private int age;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String address;
    private String uPortrait;
    private int power;
    private String contact;
    private String uProfile;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date uTime;
}
